import { Metadata } from "next";
import { I18nProvider, getServerI18n } from "@/i18n";
import Add from "@mui/icons-material/Add";
import Button from "@mui/material/Button";
import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import Link from "next/link";
import CreateInvoice from "@/components/CreateInvoice_forGen";

export const metadata: Metadata = {
  title: "Create Invoice",
};

const Invoice: React.FC = async () => {
  const { t } = await getServerI18n("Create Invoice");

  return (
    <>
      <Typography variant="h4">{t("Create Invoice")}</Typography>
      <I18nProvider namespaces={["invoice"]}>
        <CreateInvoice />
      </I18nProvider>
    </>
  )
};

export default Invoice;